<div class="wrapper-head-menu clearfix">
    <ul>
        <li>
            <?php
                echo '<div class="space1">' . sprintf(__("You are logged in as: %s"), $this->Session->read('Auth.User.username')) . '</div>';
                echo $this->Html->link(__("Log out"), array('plugin' => 0, 'controller' => 'users', 'action' => 'logout'));
            ?>
            <div class="space1">|</div>
        </li>
        <?php 
        $alert = $this->requestAction('/admin/reminders/alert');
        if($alert > 0) {
            echo '<li><div class="space1" style="margin-right:0;">(' . $alert . ')</div>' . $this->Html->link($this->Html->image('/img/icons/reminder_icon.gif', array('style' => 'width:18px; height:17px; margin-top:3px;')), array(
                        'controller' => 'reminders',
                        'action' => 'calendar',
                    ), array('rel' => 'alert2', 'escape' => false)) . '<div class="space1">|</div></li>';
        }
        ?>
        <li>
            <a href="#">Help</a>
            <div class="space1">|</div>
        </li>
        <li><a href="#">Aihre.com</a></li>
    </ul>
</div>
<?php
//    $today_reminder = $this->requestAction(array('controller' => 'reminder', 'action' => 'today'));
?>